<!-- HTML header for doxygen 1.8.6-->
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<title>OpenCV: opencv2/dnn/layer.details.hpp File Reference</title>
<link href="../../opencv.ico" rel="shortcut icon" type="image/x-icon" />
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<script type="text/javascript" src="../../tutorial-utils.js"></script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/x-mathjax-config">
  MathJax.Hub.Config({
    extensions: ["tex2jax.js", "TeX/AMSmath.js", "TeX/AMSsymbols.js"],
    jax: ["input/TeX","output/HTML-CSS"],
});
//<![CDATA[
MathJax.Hub.Config(
{
  TeX: {
      Macros: {
          matTT: [ "\\[ \\left|\\begin{array}{ccc} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{array}\\right| \\]", 9],
          fork: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ \\end{array} \\right.", 4],
          forkthree: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ \\end{array} \\right.", 6],
          forkfour: ["\\left\\{ \\begin{array}{l l} #1 & \\mbox{#2}\\\\ #3 & \\mbox{#4}\\\\ #5 & \\mbox{#6}\\\\ #7 & \\mbox{#8}\\\\ \\end{array} \\right.", 8],
          vecthree: ["\\begin{bmatrix} #1\\\\ #2\\\\ #3 \\end{bmatrix}", 3],
          vecthreethree: ["\\begin{bmatrix} #1 & #2 & #3\\\\ #4 & #5 & #6\\\\ #7 & #8 & #9 \\end{bmatrix}", 9],
          cameramatrix: ["#1 = \\begin{bmatrix} f_x & 0 & c_x\\\\ 0 & f_y & c_y\\\\ 0 & 0 & 1 \\end{bmatrix}", 1],
          distcoeffs: ["(k_1, k_2, p_1, p_2[, k_3[, k_4, k_5, k_6 [, s_1, s_2, s_3, s_4[, \\tau_x, \\tau_y]]]]) \\text{ of 4, 5, 8, 12 or 14 elements}"],
          distcoeffsfisheye: ["(k_1, k_2, k_3, k_4)"],
          hdotsfor: ["\\dots", 1],
          mathbbm: ["\\mathbb{#1}", 1],
          bordermatrix: ["\\matrix{#1}", 1]
      }
  }
}
);
//]]>
</script><script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js"></script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
<link href="../../stylesheet.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<!--#include virtual="/google-search.html"-->
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="../../opencv-logo-small.png"/></td>
  <td style="padding-left: 0.5em;">
   <div id="projectname">OpenCV
   &#160;<span id="projectnumber">4.5.2</span>
   </div>
   <div id="projectbrief">Open Source Computer Vision</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
<script type="text/javascript" src="../../menudata.js"></script>
<script type="text/javascript" src="../../menu.js"></script>
<script type="text/javascript">
$(function() {
  initMenu('../../',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="../../dir_c81d390d4be3c7ac7dd225b2c01576cc.html">opencv2</a></li><li class="navelem"><a class="el" href="../../dir_c769886d40a1da819f6d36e7a13616a6.html">dnn</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#namespaces">Namespaces</a> &#124;
<a href="#define-members">Macros</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">layer.details.hpp File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;<a class="el" href="../../d4/db0/layer_8hpp.html">opencv2/dnn/layer.hpp</a>&gt;</code><br />
</div><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/d7b/classcv_1_1dnn_1_1details_1_1__LayerStaticRegisterer.html">cv::dnn::details::_LayerStaticRegisterer</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="namespaces"></a>
Namespaces</h2></td></tr>
<tr class="memitem:d2/d75/namespacecv"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d75/namespacecv.html">cv</a></td></tr>
<tr class="memdesc:d2/d75/namespacecv"><td class="mdescLeft">&#160;</td><td class="mdescRight">"black box" representation of the file storage associated with a file on disk. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:df/d57/namespacecv_1_1dnn"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d57/namespacecv_1_1dnn.html">cv::dnn</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:de/db0/namespacecv_1_1dnn_1_1details"><td class="memItemLeft" align="right" valign="top"> &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../de/db0/namespacecv_1_1dnn_1_1details.html">cv::dnn::details</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a7e8d9c0c5849b6a081ba2a84845f3dac"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d8c/layer_8details_8hpp.html#a7e8d9c0c5849b6a081ba2a84845f3dac">CV_DNN_REGISTER_LAYER_CLASS</a>(type,  class)&#160;&#160;&#160;<a class="el" href="../../d4/d67/classcv_1_1dnn_1_1LayerFactory.html#aca69c92ed171a3a1e4ea38f28be20252">cv::dnn::LayerFactory::registerLayer</a>(#type, <a class="el" href="../../de/db0/namespacecv_1_1dnn_1_1details.html#a06f5cc1a966d560a28a4494d40788b0c">cv::dnn::details::_layerDynamicRegisterer</a>&lt;class&gt;);</td></tr>
<tr class="memdesc:a7e8d9c0c5849b6a081ba2a84845f3dac"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers layer class in runtime.  <a href="#a7e8d9c0c5849b6a081ba2a84845f3dac">More...</a><br /></td></tr>
<tr class="separator:a7e8d9c0c5849b6a081ba2a84845f3dac"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3c98e4b6b14774a103dec04734bd8969"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d8c/layer_8details_8hpp.html#a3c98e4b6b14774a103dec04734bd8969">CV_DNN_REGISTER_LAYER_CLASS_STATIC</a>(type,  class)</td></tr>
<tr class="memdesc:a3c98e4b6b14774a103dec04734bd8969"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers layer class on module load time.  <a href="#a3c98e4b6b14774a103dec04734bd8969">More...</a><br /></td></tr>
<tr class="separator:a3c98e4b6b14774a103dec04734bd8969"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a9260a45cfd37d8fe1c69fededc6f2692"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d8c/layer_8details_8hpp.html#a9260a45cfd37d8fe1c69fededc6f2692">CV_DNN_REGISTER_LAYER_FUNC</a>(type,  constructorFunc)&#160;&#160;&#160;<a class="el" href="../../d4/d67/classcv_1_1dnn_1_1LayerFactory.html#aca69c92ed171a3a1e4ea38f28be20252">cv::dnn::LayerFactory::registerLayer</a>(#type, constructorFunc);</td></tr>
<tr class="memdesc:a9260a45cfd37d8fe1c69fededc6f2692"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers layer constructor in runtime.  <a href="#a9260a45cfd37d8fe1c69fededc6f2692">More...</a><br /></td></tr>
<tr class="separator:a9260a45cfd37d8fe1c69fededc6f2692"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6aca608408468efb61565dbf00cfe0d0"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../df/d8c/layer_8details_8hpp.html#a6aca608408468efb61565dbf00cfe0d0">CV_DNN_REGISTER_LAYER_FUNC_STATIC</a>(type,  constructorFunc)&#160;&#160;&#160;static <a class="el" href="../../de/d7b/classcv_1_1dnn_1_1details_1_1__LayerStaticRegisterer.html">cv::dnn::details::_LayerStaticRegisterer</a> __LayerStaticRegisterer_##type(#type, constructorFunc);</td></tr>
<tr class="memdesc:a6aca608408468efb61565dbf00cfe0d0"><td class="mdescLeft">&#160;</td><td class="mdescRight">Registers layer constructor on module load time.  <a href="#a6aca608408468efb61565dbf00cfe0d0">More...</a><br /></td></tr>
<tr class="separator:a6aca608408468efb61565dbf00cfe0d0"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a06f5cc1a966d560a28a4494d40788b0c"><td class="memTemplParams" colspan="2">template&lt;typename LayerClass &gt; </td></tr>
<tr class="memitem:a06f5cc1a966d560a28a4494d40788b0c"><td class="memTemplItemLeft" align="right" valign="top">Ptr&lt; Layer &gt;&#160;</td><td class="memTemplItemRight" valign="bottom"><a class="el" href="../../de/db0/namespacecv_1_1dnn_1_1details.html#a06f5cc1a966d560a28a4494d40788b0c">cv::dnn::details::_layerDynamicRegisterer</a> (LayerParams &amp;params)</td></tr>
<tr class="separator:a06f5cc1a966d560a28a4494d40788b0c"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a id="a7e8d9c0c5849b6a081ba2a84845f3dac"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e8d9c0c5849b6a081ba2a84845f3dac">&#9670;&nbsp;</a></span>CV_DNN_REGISTER_LAYER_CLASS</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CV_DNN_REGISTER_LAYER_CLASS</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">type, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">class&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="../../d4/d67/classcv_1_1dnn_1_1LayerFactory.html#aca69c92ed171a3a1e4ea38f28be20252">cv::dnn::LayerFactory::registerLayer</a>(#type, <a class="el" href="../../de/db0/namespacecv_1_1dnn_1_1details.html#a06f5cc1a966d560a28a4494d40788b0c">cv::dnn::details::_layerDynamicRegisterer</a>&lt;class&gt;);</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Registers layer class in runtime. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>string, containing type name of the layer. </td></tr>
    <tr><td class="paramname">class</td><td>C++ class, derived from Layer.</td></tr>
  </table>
  </dd>
</dl>
<p>This macros must be placed inside the function code. </p>

</div>
</div>
<a id="a3c98e4b6b14774a103dec04734bd8969"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a3c98e4b6b14774a103dec04734bd8969">&#9670;&nbsp;</a></span>CV_DNN_REGISTER_LAYER_CLASS_STATIC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CV_DNN_REGISTER_LAYER_CLASS_STATIC</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">type, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">class&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<b>Value:</b><div class="fragment"><div class="line">Ptr&lt;Layer&gt; __LayerStaticRegisterer_func_##type(LayerParams &amp;<a class="code" href="../../d1/dae/namespacecv_1_1gapi_1_1ie.html#a3ab1729bcaf2d08e30dd2bc645410908">params</a>) \</div><div class="line">    { <span class="keywordflow">return</span> Ptr&lt;Layer&gt;(<span class="keyword">new</span> <span class="keyword">class</span>(<a class="code" href="../../d1/dae/namespacecv_1_1gapi_1_1ie.html#a3ab1729bcaf2d08e30dd2bc645410908">params</a>)); }                       \</div><div class="line">static <a class="code" href="../../de/d7b/classcv_1_1dnn_1_1details_1_1__LayerStaticRegisterer.html">cv::dnn::details::_LayerStaticRegisterer</a> __LayerStaticRegisterer_##type(#type, __LayerStaticRegisterer_func_##type);</div><div class="ttc" id="namespacecv_1_1gapi_1_1ie_html_a3ab1729bcaf2d08e30dd2bc645410908"><div class="ttname"><a href="../../d1/dae/namespacecv_1_1gapi_1_1ie.html#a3ab1729bcaf2d08e30dd2bc645410908">cv::gapi::ie::params</a></div><div class="ttdeci">PyParams params(const std::string &amp;tag, const std::string &amp;model, const std::string &amp;weights, const std::string &amp;device)</div></div>
<div class="ttc" id="classcv_1_1dnn_1_1details_1_1__LayerStaticRegisterer_html"><div class="ttname"><a href="../../de/d7b/classcv_1_1dnn_1_1details_1_1__LayerStaticRegisterer.html">cv::dnn::details::_LayerStaticRegisterer</a></div><div class="ttdef"><b>Definition:</b> layer.details.hpp:57</div></div>
</div><!-- fragment -->
<p>Registers layer class on module load time. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>string, containing type name of the layer. </td></tr>
    <tr><td class="paramname">class</td><td>C++ class, derived from Layer.</td></tr>
  </table>
  </dd>
</dl>
<p>This macros must be placed outside the function code. </p>

</div>
</div>
<a id="a9260a45cfd37d8fe1c69fededc6f2692"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a9260a45cfd37d8fe1c69fededc6f2692">&#9670;&nbsp;</a></span>CV_DNN_REGISTER_LAYER_FUNC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CV_DNN_REGISTER_LAYER_FUNC</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">type, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">constructorFunc&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="../../d4/d67/classcv_1_1dnn_1_1LayerFactory.html#aca69c92ed171a3a1e4ea38f28be20252">cv::dnn::LayerFactory::registerLayer</a>(#type, constructorFunc);</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Registers layer constructor in runtime. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>string, containing type name of the layer. </td></tr>
    <tr><td class="paramname">constructorFunc</td><td>pointer to the function of type LayerRegister::Constructor, which creates the layer.</td></tr>
  </table>
  </dd>
</dl>
<p>This macros must be placed inside the function code. </p>

</div>
</div>
<a id="a6aca608408468efb61565dbf00cfe0d0"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6aca608408468efb61565dbf00cfe0d0">&#9670;&nbsp;</a></span>CV_DNN_REGISTER_LAYER_FUNC_STATIC</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define CV_DNN_REGISTER_LAYER_FUNC_STATIC</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">type, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">constructorFunc&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;static <a class="el" href="../../de/d7b/classcv_1_1dnn_1_1details_1_1__LayerStaticRegisterer.html">cv::dnn::details::_LayerStaticRegisterer</a> __LayerStaticRegisterer_##type(#type, constructorFunc);</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Registers layer constructor on module load time. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">type</td><td>string, containing type name of the layer. </td></tr>
    <tr><td class="paramname">constructorFunc</td><td>pointer to the function of type LayerRegister::Constructor, which creates the layer.</td></tr>
  </table>
  </dd>
</dl>
<p>This macros must be placed outside the function code. </p>

</div>
</div>
</div><!-- contents -->
<!-- HTML footer for doxygen 1.8.6-->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Apr 2 2021 11:36:33 for OpenCV by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="../../doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
<script type="text/javascript">
//<![CDATA[
addTutorialsButtons();
//]]>
</script>
</body>
</html>
